import requests
from config import RunConfig

def 获取报告地址(para):
    response = requests.get(
        url=RunConfig.url + "data/analyse/getReportUrl?relationId=&type=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 分页查询数据分析(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/list/page?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 上传地面放射性文件(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/upload?id=&type=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 数据分析分页_废弃(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 大地导电率结果详情(para):
    response = requests.get(
        url=RunConfig.url + "data/analyse/ground/electric/list?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 地面放射性计算(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/ground/activity/calculate",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 大地导电率结果编辑(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/ground/electric/edit",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 地面放射性详情(para):
    response = requests.get(
        url=RunConfig.url + "data/analyse/ground/activity/detail?glrwjlId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 数据分析导出(para):
    response = requests.post(
        url=RunConfig.url + "/data/analyse/export?type=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response
